# -*- coding: utf-8 -*-
# @Time    : 2019/5/7 11:28
# @Author  : zjj
# @Email   : 1933860854@qq.com
# @File    : adminx.py
# @Software: PyCharm
import xadmin
from constant.models import Constant
class ConstantAdmin(object):
    list_display = ('name', 'value', 'remark', 'create_time')
    list_filter = ['name']
    list_per_page = 10
    ordering = ['-create_time']
    model_icon = 'fa fa-building-o'

xadmin.site.register(Constant, ConstantAdmin)